package org.jeecg.modules.wmhb.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.system.entity.SysUser;
import org.jeecg.modules.wmhb.entity.WmContract;
import org.jeecg.modules.wmhb.entity.WmTask;
import org.jeecg.modules.wmhb.entity.WmTaskBom;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.jeecg.modules.wmhb.entity.WmTaskbook;

/**
 * @Description: 任务BOM
 * @Author: jeecg-boot
 * @Date:   2024-08-31
 * @Version: V1.0
 */
public interface WmTaskBomMapper extends BaseMapper<WmTaskBom> {
    /**
     * 根据任务ID查找分组BOM
     */
    public List<WmTaskBom> listGroupByWmTaskIds(@Param("idList") List<String> idList);

    /**
     * 通过任务ID查询任务书
     */
    public WmTaskbook selectTaskbookByTaskId(String wmTaskId);

    /**
     * 通过任务ID查询任务
     */
    public WmTask selectTaskByTaskId(String wmTaskId);

    /**
     * 通过用户ID查询用户
     */
    public SysUser selectUserById(String sysUserId);

    /**
     * 通过合同ID查询合同
     */
    public WmContract selectContractByContractId(String wmContractId);
}
